{% extends "base.html" %}

{% block title %}班级大事记{% endblock %}
{% block content %}
<div class="container">
	<br/>
	<h1>那些永远忘不掉的事情</h1>
	<br/>

	<div class="container-fluid">
		<div class="row">
			{% for event in sort_events %}
				<div class="col-md-2">
					<b>{{ event.date }}</b>
				</div>
				<div class="col-md-6">
					<b>大事情发生了：{{ event.title }}</b>
				</div>
				<div class="col-md-4">
					<a role="button" class="btn btn-link" 
							href="{% url 'events:look' event.event_id %}">让我看看！</a>
				</div>
				<br/><br/><br/>
			{% endfor %}
		</div>
	</div>
	

	<a role="button" class="btn btn-primary" href="{% url 'events:create' %}">我要补充！</a>
	</div>
{% endblock %}